package com.hlkj.baojin.jwt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author lzx
 */
@ApiModel
public class JwtAuthenticationResponse implements Serializable {

    private static final long serialVersionUID = 1250166508152483573L;

    @ApiModelProperty(notes = "token")
    private  String token;
    @ApiModelProperty(notes = "类型 1 公司 2 后台管理员")
    private  Integer type;
    @ApiModelProperty(notes = "名字")
    private String name;
    @ApiModelProperty(notes = "名字")
    private String userId;

    public Integer getType() {
        return type;
    }

    public JwtAuthenticationResponse(String token, Integer type, String name,String userId) {
        this.token = token;
        this.type = type;
        this.userId = userId;
        this.name = name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public JwtAuthenticationResponse(String token) {
        this.token = token;
    }

    public String getToken() {
        return token;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
